package com.soft.link.utils;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

/**
 * company 重庆庆云石油工程技术有限责任公司
 * FileName PfToken
 * Package com.soft.link.utils
 * Description
 * author Administrator
 * create 2018-04-25 17:07
 * version V1.0
 */

public class PfToken {

    /**
     * @param request pfToken
     */
    public static String getCookieValue(HttpServletRequest request) {
        String value = "";
        Cookie[] cookies = request.getCookies();
        if(cookies != null) {
            Cookie[] var4 = cookies;
            int var5 = cookies.length;
            for(int var6 = 0; var6 < var5; ++var6) {
                Cookie cookie = var4[var6];
                if(cookie.getName().equalsIgnoreCase("pfToken")) {
                    value = cookie.getValue();
                }
            }
        }
        return value;
    }
}
